<?php foreach ($news as $news_item):?>
<div class="main_content">
<h2><?php echo $news_item['title']?></h2>
<p><?php echo $news_item['text_preview']?></p>
<div class="date_add"><img class="mini_calendar" src="<?php echo __PUBLIC_PATH?>/images/calendar.png"
	alt="calendar"><?php echo date("d F Y",strtotime($news_item['created']))?></div>
<div class="read_more"><a href="<?php echo $this->registry->router->url(array("news"=>"view","id"=>$news_item['id']))?>">Детальніше</a></div>
<div style="clear: both"></div>
</div>
<?php endforeach;?>

<div class="pagination">

<a href="<?php echo $this->registry->router->url(array("news"=>"index","page"=>"1"))?>">&lt;&lt;</a>
	<?php if ($current_page>1):?>
	<a href="<?php echo $this->registry->router->url(array("news"=>"index","page"=>($current_page-1)))?>">[<?php echo $current_page-1?>]</a> 
	<?php endif;?>
 
	<b><?php echo $current_page?></b> 

	<?php if ($current_page<$last_page):?>
	<a href="<?php echo $this->registry->router->url(array("news"=>"index","page"=>($current_page+1)))?>">[<?php echo $current_page+1?>]</a> 
	<?php endif;?>

<a href="<?php echo $this->registry->router->url(array("news"=>"index","page"=>$last_page))?>">&gt;&gt;</a>
	
	</div>